#include <iostream>
#include <string>
#include <memory>
#include "Http_Server.hpp"

static void usage(std::string str)
{
    std::cout << str << " port" << std::endl;
}

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        usage(argv[0]);
        exit(4);
    }

    int port = atoi(argv[1]);
    HttpServer* http_server=new HttpServer(port);
    http_server->InitServer();
    http_server->Loop();
    return 0;
}